<?php
class DomArValidationError {
	
	private $object;
	
	private $errorCode;
	
	private $propertyName;
	
	private $value;
	
	public function __construct( DomArDomainObject $object, $errorCode, $propertyName, $value) {
		$this->object = $object;
		$this->errorCode = (int)$errorCode;
		$this->propertyName = $propertyName;
		$this->value = $value;
	}
	
	public function getSystemMessage() {
		return 'Validation error '.$this->errorCode.' for class '.get_class($this->object).' property '.$this->propertyName.'!';
	}
	
	public function getMessage() {
		
	}
	
}
?>